﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLKS
{
    public partial class frQLmain : Form
    {
        public frQLmain()
        {
            InitializeComponent();
        }

        private DTO.CTAIKHOAN _taiKhoan;

        internal DTO.CTAIKHOAN TaiKhoan
        {
            get { return _taiKhoan; }
            set { _taiKhoan = value; }
        }

        private DTO.CNHANVIEN _userOnline;

        internal DTO.CNHANVIEN UserOnline
        {
            get { return _userOnline; }
            set { _userOnline = value; }
        }
        private void frQLmain_Load(object sender, EventArgs e)
        {
            contextMenuBar1.Visible = true;
            lblHoTen.Text = UserOnline.HoTen;
        }

        private void btntimttnv_Click(object sender, EventArgs e)
        {
            frtimkiem tim = new frtimkiem();
            tim.ShowDialog();
        }

        private void btnthemnv_Click(object sender, EventArgs e)
        {
            frthemnv newnv = new frthemnv();
            newnv.ShowDialog();
        }

        private void btnxoasuanv_Click(object sender, EventArgs e)
        {
            frxoasuanv xoasuanv = new frxoasuanv();
            xoasuanv.ShowDialog();
        }

        private void btbxemttnv_Click(object sender, EventArgs e)
        {
            frxemttnv xemttnv = new frxemttnv();
            xemttnv.ShowDialog();
        }

        private void btnhd_Click(object sender, EventArgs e)
        {
            Huongdanchung hd = new Huongdanchung();
            hd.ShowDialog();
        }

        private void buttonItem4_Click(object sender, EventArgs e)
        {
            frDoiMatKhau doimk = new frDoiMatKhau();
            doimk.TK = TaiKhoan;
            doimk.ShowDialog();
        }

        private void buttonItem5_Click(object sender, EventArgs e)
        {
            NVfrmTimKiem timkiem = new NVfrmTimKiem();
            timkiem.ShowDialog();
        }

        private void buttonItem6_Click(object sender, EventArgs e)
        {
            QltaoTK taotk = new QltaoTK();
            taotk.ShowDialog();
        }

        private void buttonItem7_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void buttonItem8_Click(object sender, EventArgs e)
        {
            frphong frp = new frphong();
            frp.ShowDialog();
        }
    }
}
